import { defineStore } from 'pinia'
export const index = defineStore("index", {
	state: () => {
		return {
			name: "Dragon Wu",
			age: 100,
			sex: "male",
			token: "xxx",
			indexLeftBottom:null,
			indexRightTop:null,
			indexRightBottom:null,
			i18nValue:"zh"
		}
	},

	getters: {
		getNewName: (state) => {
			return state.name + ":New"
		}
	},
	persist: {
		storage: persistedState.localStorage,
	}
})